{set:
	$seo_data = array();
	$site_config = new Config('site_config');
	$seo_data['title'] = '团购_'.$site_config->name;
	$seo_data['keywords']=$site_config->index_seo_keywords;
	$seo_data['description']=$site_config->index_seo_description;
	seo::set($seo_data);
}
<section class="container-full">
 <div class="label" style="margin:0">
    <a class="label1" href="javascript:void(0)"><i class="on"></i>今日团购</a>
</div>

{set:$countNumItems = array();}
	{foreach:items=$this->regiment_list}
	{set:$countNumItems[] = $item['id'];}
	<div class="pro_list border-bottom">
		<div class="col-xs-4">
			<a href="{url:/site/products/promo/groupon/id/$item[goods_id]/active_id/$item[id]}"><img src="{webroot:}{$item['img']}" class="img-responsive" alt=""></a>
		</div>
		<div class="col-xs-8">
			<h4><a href="{url:/site/products/promo/groupon/id/$item[goods_id]/active_id/$item[id]}">{$item['title']}</a></h4>
			
			<h5 class="red">仅售{$item['regiment_price']}</h5>
			<h6 >原价<span style="text-decoration:line-through">￥{$item['sell_price']} </span>折扣{echo:Util::discount($item['sell_price'],$item['regiment_price'])}节省￥{echo:$item['sell_price']-$item['regiment_price'];}</h6>


			{set:$free_time=strtotime($item['end_time'])-ITime::getNow();}
			<h6 >团购倒计时:
			<span id="cd_hour_{$item['id']}" >{echo:floor($free_time/3600);}</span>小时
			<span id="cd_minute_{$item['id']}">
			{echo:floor( ($free_time%3600)/60 );}</span>
			分钟
			<span id="cd_second_{$item['id']}">{echo:$free_time%60}</span>秒</h6>

			<h6 >
			销量:{$item['sum_count']}仅剩:{echo:$item['store_nums']-$item['sum_count']} 限购量：{$item['limit_min_count']} ~ {$item['limit_max_count']}</h6>
		</div>
	</div>

	{/foreach}





</section>


<script language="javascript">
$(function()
{
	//倒计时
	var cd_timer = new countdown();
	{foreach:items = $countNumItems}
		cd_timer.add({$item});
	{/foreach}
});

//电子邮件订阅
function orderinfo()
{
	var email = $('[name="orderinfo"]').val();
	if(email == '')
	{
		alert('请填写正确的email地址');
	}
	else
	{
		$.getJSON('{url:/site/email_registry}',{email:email},function(content){
			if(content.isError == false)
			{
				alert('订阅成功');
				$('[name="orderinfo"]').val('');
			}
			else
				alert(content.message);
		});
	}
}
</script>